﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Teacher:Student
    {
        private string title;
        private int wageno;
        public Teacher()
        {

        }
        public Teacher(string Major, int Grade)
        {
            this.Title = title;
            this.Wageno = wageno;
        }
        public void Hello()
        {
            base.Hello();
            Console.WriteLine("职称为{0}",this.title);
            Console.WriteLine("工资号为{0}",this.wageno);
        }
        public string Title
        {
            get { return this.title; }
            set { this.title = value; }
        }
        public int Wageno
        {
            get { return this.wageno; }
            set { this.wageno = value; }
        }
    }
}
